/*
    Document   : style.css
    Created on : Nov 19, 2012
    Author     : HongDC
*/

body {
    background: #31363C;
    color: #fff;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    text-rendering: optimizelegibility;
    margin: 0 auto;
    padding: 0;
    width: 800px;
}

a:visited {
    color: inherit;
}

header {

}

.logo {
    margin: 20px 0px -25px 30px;
    background: url(logo.png) no-repeat;
    width: 180px;
    height: 85px;
    display: block;
    position: relative;
}

.menu {
    display: inline-block;
    width: 100%;
}

.menu ul {
    list-style: none;
    margin: 10px;
    float: right;
}

.menu ul > li {
    margin-right: 3px;
    display: inline-block;
}

.menu ul > li > a {
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 4px 4px 0px 0px;
    background-image:-moz-linear-gradient(rgb(110,118,131) 0%,rgb(85,93,106) 94%,rgb(84,92,105) 98%);
    background-image:-webkit-gradient(linear,color-stop(0, rgb(110,118,131)),color-stop(0.94, rgb(85,93,106)),color-stop(0.98, rgb(84,92,105)));
    background-image:-webkit-linear-gradient(rgb(110,118,131) 0%,rgb(85,93,106) 94%,rgb(84,92,105) 98%);
    background-image:-ms-linear-gradient(rgb(110,118,131) 0%,rgb(85,93,106) 94%,rgb(84,92,105) 98%);
    background-image:linear-gradient(rgb(110,118,131) 0%,rgb(85,93,106) 94%,rgb(84,92,105) 98%);
    -ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff6e7683,endColorstr=#ff545c69)";
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff6e7683,endColorstr=#ff545c69);
}

.menu ul > li.active > a {
    color: #31363C;
    background-image:-moz-linear-gradient(rgb(176,220,141) 0%,rgb(137,201,83) 96%,rgb(136,200,81) 99%);
    background-image:-webkit-gradient(linear,color-stop(0, rgb(176,220,141)),color-stop(0.96, rgb(137,201,83)),color-stop(0.99, rgb(136,200,81)));
    background-image:-webkit-linear-gradient(rgb(176,220,141) 0%,rgb(137,201,83) 96%,rgb(136,200,81) 99%);
    background-image:-ms-linear-gradient(rgb(176,220,141) 0%,rgb(137,201,83) 96%,rgb(136,200,81) 99%);
    background-image:linear-gradient(rgb(176,220,141) 0%,rgb(137,201,83) 96%,rgb(136,200,81) 99%);
    -ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffb0dc8d,endColorstr=#ff88c851)";
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffb0dc8d,endColorstr=#ff88c851);
}

.tool-bar > div {
    width: 100%;
}

.tool-bar .line {
    width: 100%;
    height: 10px;
    background-image:-moz-linear-gradient(50% 0% -90deg,rgb(136,200,81) 0%,rgb(136,200,81) 65%,rgb(105,167,54) 99%);
    background-image:-webkit-gradient(linear,50% 0%,50% 100%,color-stop(0, rgb(136,200,81)),color-stop(0.65, rgb(136,200,81)),color-stop(0.99, rgb(105,167,54)));
    background-image:-webkit-linear-gradient(-90deg,rgb(136,200,81) 0%,rgb(136,200,81) 65%,rgb(105,167,54) 99%);
    background-image:-ms-linear-gradient(-90deg,rgb(136,200,81) 0%,rgb(136,200,81) 65%,rgb(105,167,54) 99%);
    background-image:linear-gradient(-90deg,rgb(136,200,81) 0%,rgb(136,200,81) 65%,rgb(105,167,54) 99%);
    width: 100%;
    height: 10px;
    -ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff88c851,endColorstr=#ff69a736,GradientType=0)";
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff88c851,endColorstr=#ff69a736,GradientType=0);
}

.bar {
    height: 50px;
    width: 100%;
    background-image:-moz-linear-gradient(50% 0% -90deg,rgb(111,119,131) 0%,rgb(83,91,103) 100%);
    background-image:-webkit-gradient(linear,50% 0%,50% 100%,color-stop(0, rgb(111,119,131)),color-stop(1, rgb(83,91,103)));
    background-image:-webkit-linear-gradient(-90deg,rgb(111,119,131) 0%,rgb(83,91,103) 100%);
    background-image:-ms-linear-gradient(-90deg,rgb(111,119,131) 0%,rgb(83,91,103) 100%);
    background-image:linear-gradient(-90deg,rgb(111,119,131) 0%,rgb(83,91,103) 100%);
    -ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff6f7783,endColorstr=#ff535b67,GradientType=0)";
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff6f7783,endColorstr=#ff535b67,GradientType=0);
}

.bar > div {
    font-family: Georgia;
    float: left;
    width: 33.2%;
    padding: 10px;
    border-left: dashed 1px #A3A3A3;
    height: 50px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.bar > div:first-child {
    border-left: none;
}

.cart-header {
    height: 36px;
    padding: 6px;
    box-shadow: inset 0px 1px 1px rgba(255, 255, 255, 0.18);
    background-image:-moz-linear-gradient(50% 0% -90deg,rgb(111,119,131) 0%,rgb(83,91,103) 100%);
    background-image:-webkit-gradient(linear,50% 0%,50% 100%,color-stop(0, rgb(111,119,131)),color-stop(1, rgb(83,91,103)));
    background-image:-webkit-linear-gradient(-90deg,rgb(111,119,131) 0%,rgb(83,91,103) 100%);
    background-image:-ms-linear-gradient(-90deg,rgb(111,119,131) 0%,rgb(83,91,103) 100%);
    background-image:linear-gradient(-90deg,rgb(111,119,131) 0%,rgb(83,91,103) 100%);
    -ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff6f7783,endColorstr=#ff535b67,GradientType=0)";
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff6f7783,endColorstr=#ff535b67,GradientType=0);
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

.cart-header span {
    margin-right: 20px;
    text-transform: uppercase;

}

.cart-title {
    margin-left: 10px;
}

.cart-items {
    font-size: 110%;
    padding: 1px 12px;
    border-radius: 15px;
    background: #47515B;
}

.cart-title input {
    color: #DEBA6B;
    appearance: none;
    text-transform: uppercase;
    border: none;
    background: none;
    font-size: 13px;
    padding: 0px;
    cursor: pointer;
}


input.search,
input.orderId {
    border-radius: 2px;
    color: #616161;
    width: 100%;
    border: none;
    background: white;
    padding: 4px 10px;
    font: inherit;
    font-size: 16px;
    outline: none;
    font-style: italic;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.cart-header {
    cursor: pointer;
}

.cart {
    height: 179px;
    background: url(bookcase.jpg);
    padding: 20px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
    overflow: auto;
}

.cart > div {
    display: inline-block;
    margin: 0px 0px 10px 20px;
}

.cart img {
    height: 120px;
    border: solid 2px #fff;
}

.cart > div > img,
.cart > div > div {
    float: left;
}

.cart .desc {
    color: #32363C;
    margin-top: 15px;
    margin-left: 15px;
    width: 120px;
}

.cart .desc > div {
    margin: 2px;
    overflow: hidden;
}

.cart .desc .title {
    font-weight: bold;
}

.cart .desc .author {
    text-transform: uppercase;
    font-size: 85%;
}

.calc {
    border-radius: 20px;
    padding: 0px 10px;
    background: #31363C;
    font-size: 90%;
    display: inline-block;
}

.calc > span {
    color: #CDA55E;
    top: -2px;
    position: relative;
}

.calc input[type=number] {
    background: none;
    border: none;
    color: white;
    font-size: 15px;
    font-family: inherit;
    width: 10px;
    margin-left: 5px;
    position: relative;
    top: -2px;
}

.calc input[type=button] {
    background: rgba(187, 187, 187, 0.6);
    border: none;
    color: black;
    padding: 0px 3px;
    border-radius: 50%;
    position: relative;
    top: -2px;
    margin: 0px -5px 0px 6px;
}


a:focus {
    outline: thin dotted;
}

a:active,
a:hover {
    outline: 0;
}

small {
    font-size: 80%;
}

img {
    border: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    width: 0%;
}

form {
    margin: 0;
}

.nav-bar {
    text-align: right;
    display: block;
    position: relative;
    color: #868686;
    top: -30px;
    padding-right: 14px;
}

.nav-bar a {
    color: #fff;
    margin-bottom: 5px;
}

.nav-bar a:hover {
    color: #88C851;
}

a {
    color: #009BD8;
    text-decoration: none;
    padding-bottom: 1px;
    -moz-transition: color 0.15s ease-in 0;
    -webkit-transition: color 0.15s ease-in 0;
}

a:hover {
    color: #F89406;
}

.container {
    color: #222;
    background: #fff;
    min-height: 500px;
    overflow: auto;
}

.admin .container {
    padding: 0px 20px;
}

.container h2 {
    font-size: 14px;
    padding: 10px 20px;
    margin: 0px;
    border-bottom: solid 1px silver;
    text-transform: uppercase;
    background-image:-moz-linear-gradient(rgb(255,255,255) 0%,rgb(244,244,244) 50%,rgb(226,226,226) 50%,rgb(241,241,241) 97%,rgb(242,242,242) 100%);
    background-image:-webkit-gradient(linear,color-stop(0, rgb(255,255,255)),color-stop(0.5, rgb(244,244,244)),color-stop(0.5, rgb(226,226,226)),color-stop(0.97, rgb(241,241,241)),color-stop(1, rgb(242,242,242)));
    background-image:-webkit-linear-gradient(rgb(255,255,255) 0%,rgb(244,244,244) 50%,rgb(226,226,226) 50%,rgb(241,241,241) 97%,rgb(242,242,242) 100%);
    background-image:-ms-linear-gradient(rgb(255,255,255) 0%,rgb(244,244,244) 50%,rgb(226,226,226) 50%,rgb(241,241,241) 97%,rgb(242,242,242) 100%);
    background-image:linear-gradient(rgb(255,255,255) 0%,rgb(244,244,244) 50%,rgb(226,226,226) 50%,rgb(241,241,241) 97%,rgb(242,242,242) 100%);
    box-shadow: 1px 1px 6px rgba(80, 80, 80, 0.28);
    -ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffffff,endColorstr=#fff2f2f2)";
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffffff,endColorstr=#fff2f2f2);
    text-shadow: 1px 2px 4px white;
    color: #3C3C3C;
}

.admin .container h2 {
    margin: 0px -20px 20px -20px;
}


.book {
    padding: 20px;
}

.book > div {
    float: left;
    display: inline-block;
    width: 370px;
    margin-bottom: 20px;
}

.book > div:nth-child(2n+1) {
    margin-right: 20px;
}

.book .desc {
    display: block;
    float: left;
    width: 260px;

}

.book .desc > * {
    margin-bottom: 5px;

}

.book .coverUrl {
    height: 100px;
    margin-right: 10px;
    float: left;
}

.book .title {
    font-family: Georgia, serif;
    font-size: 15px;
    text-overflow: ellipsis;
}

.book .author {
    text-transform: uppercase;
    font-size: 85%;
    color: rgba(34,34,34,.6);
}





.bookDetail {
    padding: 20px;
}

.bookDetail > div {
    float: left;
    display: inline-block;
    margin-bottom: 20px;
}

.bookDetail .desc {
    display: block;
    float: left;
    width: 460px;

}

.bookDetail .desc > * {
    margin-bottom: 10px;

}

.bookDetail .coverUrl {
    margin-right: 20px;
    float: left;
}

.bookDetail .title {
    font-family: Georgia, serif;
    font-size: 24px;
    text-overflow: ellipsis;
}

.bookDetail .author,
.bookDetail .publisher {
    text-transform: uppercase;
    font-size: 95%;
    color: rgba(34,34,34,.6);
}

.bookDetail .publisher {
    text-transform: capitalize;
}

button.btnAddCart {
    padding: 3px 10px;
}

button span {
    font-size: 120%;
    padding-right: 5px;
}

footer {
    font-size: 11px;
    padding: 10px 20px;
    margin: 0 0 40px 0px;
    border-radius: 0 0 5px 5px;
    border-top: solid 1px silver;
    background-image: -moz-linear-gradient(white 0%,#F4F4F4 50%,#E2E2E2 50%,#F1F1F1 97%,#F2F2F2 100%);
    background-image: -webkit-gradient(linear,color-stop(0, white),color-stop(0.5, #F4F4F4),color-stop(0.5, #E2E2E2),color-stop(0.97, #F1F1F1),color-stop(1, #F2F2F2));
    background-image: -webkit-linear-gradient(white 0%,#F4F4F4 50%,#E2E2E2 50%,#F1F1F1 97%,#F2F2F2 100%);
    background-image: -ms-linear-gradient(white 0%,#F4F4F4 50%,#E2E2E2 50%,#F1F1F1 97%,#F2F2F2 100%);
    background-image: linear-gradient(white 0%,#F4F4F4 50%,#E2E2E2 50%,#F1F1F1 97%,#F2F2F2 100%);
    box-shadow: 0px -1px 6px rgba(80, 80, 80, 0.28);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffffff,endColorstr=#fff2f2f2)";
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffffff,endColorstr=#fff2f2f2);
    text-shadow: 0px 2px 4px white;
    color: #3C3C3C;
}


.result-widget {
    position: relative;
    z-index: 9000;
    height: 100%;
    display: block;
    color: black;
    top: -8px;
    font-family: Arial;
}

.result-widget ul li > a > div:hover {
    background-image: -moz-linear-gradient(white 0%,#F4F4F4 50%,#E2E2E2 50%,#F1F1F1 97%,#F2F2F2 100%);
    background-image: -webkit-gradient(linear,color-stop(0, white),color-stop(0.5, #F4F4F4),color-stop(0.5, #E2E2E2),color-stop(0.97, #F1F1F1),color-stop(1, #F2F2F2));
    background-image: -webkit-linear-gradient(white 0%,#F4F4F4 50%,#F1F1F1 50%,#F1F1F1 97%,#F2F2F2 100%);
    background-image: -ms-linear-gradient(white 0%,#F4F4F4 50%,#E2E2E2 50%,#F1F1F1 97%,#F2F2F2 100%);
    background-image: linear-gradient(white 0%,#F4F4F4 50%,#E2E2E2 50%,#F1F1F1 97%,#F2F2F2 100%);
    box-shadow: 1px 1px 2px rgba(80, 80, 80, 0.28);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffffff,endColorstr=#fff2f2f2)";
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffffff,endColorstr=#fff2f2f2);
    text-shadow: 1px 1px 2px white;
    color: #5F5F5F;
}

.result-widget ul li > a > div {
    border-bottom: solid 1px #E9E9E9;
}

.result-widget ul li:last-child > a > div {
    border-radius: 0 0 3px 3px;
}

.result-widget ul {
    list-style: none;
    background: white;
    width: 100%;
    padding: 0;
    border-radius: 2px;
    box-shadow: 0px 0px 13px #252525;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

}

.result-widget li {
    margin: 0;
}



.result-widget > div {
    display: inline-block;
    width: 370px;
    margin-bottom: 20px;
    clear: left;
}

.result-widget .desc {
    display: block;
    clear: left;
    position: relative;
    right: -70px;
    width: 180px;
    top: -66px;
    height: 0px;
}

.result-widget .desc > * {
    margin-bottom: 5px;

}

.result-widget .coverUrl {
    height: 85px;
    margin-right: 10px;
    float: left;
    clear: left;
}

.result-widget .title {
    font-size: 13px;
    text-overflow: ellipsis;
}

.result-widget .author {
    text-transform: uppercase;
    font-size: 85%;
    color: rgba(34,34,34,.6);
}

.account {
    width: 486px;
    height: 200px;
    left: 130px;
}

.admin .account {
    width: 225px;
    height: auto;
    left: 270px;
    top: 200px;
}

.dialog.checkout {
    width: 600px;
    height: auto;
    left: 100px;
}

.dialog.success {
    width: 600px;
    left: 80px;
}

.nav-bar .dialog {
    text-align: left;
}

.dialog {
    display: none;
    z-index: 9000;
    position: absolute;
    top: 80px;
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 1px 1px 8px #222;
}

.modal {
    display: none;
    position: absolute;
    z-index: 8999;
    height: 200%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(63, 63, 63, 0.95);
}

textarea, input[type="text"], input[type="password"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
    background-color: white;
    border: 1px solid #CCC;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
    -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
    -o-transition: border linear 0.2s, box-shadow linear 0.2s;
    transition: border linear 0.2s, box-shadow linear 0.2s;
}

select,
textarea,
input[type="text"],
input[type="password"],
input[type="email"] {
    display: inline-block;
    height: 28px;
    padding: 4px 6px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 20px;
    color: #555;
    vertical-align: middle;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: rgba(82, 168, 236, 0.8);
    outline: 0;
    outline: thin dotted 9;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}

.account input[type=text],
.account input[type=email] {
    width: 220px;

}

#login input[type=password] {
    width: 150px;
}

#register input[type=password] {
    width: 220px;
}

.inline {
    position: relative;
    top: -3px;
}

input[type=submit],
input[type=reset],
.btnAddCart,
a.btn,
input[type=file]::-webkit-file-upload-button,
.account input[type=button] {
    font-family: inherit;
    border-radius: 3px;
    border: solid 1px black;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 5px 15px;
    font-size: inherit;

    border: 1px solid #5C982C;
    background: #6FB536;
    background: -moz-linear-gradient(top, #6FB536 0%, #5FA229 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #6FB536), color-stop(100%, #5FA229) );
    background: -o-linear-gradient(top, #6FB536 0%, #5FA229 100%);
    background: -ms-linear-gradient(top, #6FB536 0%, #5FA229 100%);
    background: linear-gradient(top, #6FB536 0%, #5FA229 100%);
    text-shadow: 0 1px 2px #2E7044;
    color: white;
}

input[type=submit]:hover,
input[type=reset]:hover,
button.btnAddCart:hover,
a.btn:hover,
input[type=file]::-webkit-file-upload-button:hover,
.account input[type=button]:hover {
    border: 1px solid #4C881D;
    background-color: #2A7F22;
    background: -moz-linear-gradient(top, #60A526 0%, #478316 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #60A526), color-stop(100%, #478316) );
    background: -o-linear-gradient(top, #60A526 0%, #478316 100%);
    background: -ms-linear-gradient(top, #60A526 0%, #478316 100%);
    background: linear-gradient(top, #60A526 0%, #478316 100%);
}

.row > div {
    float: left;
}

.seperator {
    margin-left: 20px;
    padding-right: 20px;
    border-left: solid 1px #D5D5D5;
    height: 100%;
}

.dialog .close {
    position: relative;
    top: -5px;
    float: right;
    height: 0;
    cursor: pointer;
}

.tblCheckout,
.tblOrder{
    width: 600px;
    border: solid 2px #ccc;
    border-collapse: collapse;
    text-align: left;
}

table.tblOrder, table.order {
    width: 100%;
}

table.order td,
table.order th {
    padding: 10px;
}

table.tblOrder th {
    width: 120px;
}

table.tblCheckout td,
table.tblOrder td,
table.tblCheckout th,
table.tblOrder th {
    padding: 5px;
    border: solid 1px #ccc;
}


table.tblCheckout th:nth-child(3),
table.tblCheckout th:nth-child(4){
    width: 80px;
}

table.tblCheckout th:nth-child(1) {
    width: 40px;
}

table.tblUserInfo {
    width: 600px;
}

table.tblUserInfo td,
table.tblUserInfo th {
    padding: 5px;
    vertical-align: middle;
}

table.tblUserInfo input,
table.tblUserInfo select {
    width: 200px;
}

h4 {
    font-weight: normal;
    font-size: 90%;
    text-transform: uppercase;
    color: #C56D6D;
    padding-bottom: 3px;
    border-bottom: dotted 1px #CCC;
    margin: 20px 0px;
}

.dTotalItems, .dTotalPrice {
    font-weight: bold;
    font-size: 110%;
    color: #88C851;
}

.dSummary {
    float: right;
    position: relative;
    top: -10px;
}

a.orderNumber {
    font-family: Consolas, Courier ;
    font-size: 200%;
    cursor: pointer;
    color: #A02716;
}

.orderNumber:after {
    background: url(pdf.png) no-repeat;
    position: relative;
    display: block;
    padding: 6px 10px;
    margin-left: 4px;
    content: "p";
    color: transparent;
}

.pull-right {
    float: right;
}

.error {
    color: #A83A3A !important;
}

.no-result {
    padding: 15px;
}